<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <title>个人中心</title>
    <script src="js/rem.js"></script>
    <link rel="stylesheet" href="css/weui.min.css">
    <link rel="stylesheet" href="css/jquery-weui.min.css">
    <link rel="stylesheet" href="css/public.css">
    <link rel="stylesheet" href="css/user.css">
    <script>(function() {var _53code = document.createElement("script");_53code.src = "https://tb.53kf.com/code/code/96d8f960b261e49515450f8953b044bc5/1";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(_53code, s);})();</script>
    <style>
        .return-list {
            margin-left: 0.1rem;
            font-size: 0.13rem;
            font-weight: bold;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="pub-container user-consultation hide">
        <div class="pay-suc"></div>
        <div class="order-info">
            <div class="top"></div>
            <div class="user-box box3">
                <div class="inner plr15" id="paySuccess">
                    
                </div>
            </div>
        </div>
        <div class="pay-tip2 plr15">
            <p>*注：</p>
            <p>1.您可以在会诊开始3天内之前随时取消会诊进行退款，会诊费会在7天内退回您的支付账户；</p>
            <p>2.会诊开始前，3天内不予退款敬请谅解。</p>
            '<a class="return-list" href="user-consul-clist.html?tabIndex=2">返回列表</a>'
        </div>
    </div>
    <script src="js/jquery-3.6.0.min.js"></script>
    <script src="js/jquery-weui.min.js"></script>
    <script src="js/md5.js"></script>
    <script src="js/public.js"></script>
    <script>
        var orderNo = getQueryString('orderNo') || getQueryString('out_trade_no');
        var payTypes = {
            1: '微信支付',
            2: '支付宝支付',
            3: '在线支付'
        }
        
        // 支付成功回调
        http('/pay/queryOrder', {
            loading: true,
            hasToken: false,
            data: {
                orderNo: orderNo
            },
            success: function(res){
                if(res.code === '01'){
                    var data = res.data;
                    var html = '<p class="line1"><span class="txt">会诊费</span><span class="money">' + data.consulationMoney + '</span><span class="unit">元</span></p>' + 
                        '<div class="sq-info">' + 
                            '<p><span class="txt1">订单号 </span><span>' + orderNo + '</span></p>' + 
                            '<p><span class="txt1">下单时间 </span><span>' + data.orderTime + '</span></p>' + 
                            '<p><span class="txt1">支付方式 </span><span>' + payTypes[data.orderType] + '</span></p>' + 
                        '</div>' + 
                        '<p class="bottom-tip">遇到支付问题请联系客服，客服电话：400-990-0686</p>' + 
                        '<div class="custom-box">' + 
                            '<a class="custom-btn" href="' + customUrl + '">咨询客服</a>' + 
                            '<a class="return-list" href="user-consul-clist.html?tabIndex=2">返回列表</a>' + 
                        '</div>';
                    $('#paySuccess').html(html);
                    $('.user-consultation').show();
                }
            }
        })
    </script>
</body>
</html>